//
//  UITextField+Lc.m
//  18Birdies
//
//  Created by Lc on 15/5/6.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import "LcFont.h"
#import "NSAttributedString+Lc.h"
#import "UIColor+Lc.h"
#import "UITextField+Lc.h"

@implementation UITextField (Lc)

- (void)setLcFont:(LcFont*)lcFont {
  self.font = lcFont.font;
  self.textColor = lcFont.color;
}

- (void)setPlaceholder:(NSString*)placeholder withLcFont:(LcFont*)lcFont {
  self.placeholder = nil;
  self.attributedPlaceholder =
      [NSAttributedString attributedStringWithString:placeholder lcFont:lcFont];
}

@end
